package com.example.jenkins_test.controller;

import org.apache.tomcat.jni.Time;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author ：qmf
 * @date ：Created in 2021/4/23 16:53
 * @description：
 * @modified By：
 */
@RestController
public class HelloController {

    @GetMapping("/hello")
    public String hello() {
        SimpleDateFormat format = new SimpleDateFormat("HH:mm:ss");
        Date date = new Date();
        String s = format.format(date);
        return "Hello World: " + s;
    }
}
